package com.patterns.mediator;

/**
 * 抽象同事类
 * @author fwj
 * @date 2021/4/21 16:47
 **/
public abstract class Colleague {

    protected Mediator mediator;
    public void setMedium(Mediator mediator) {
        this.mediator = mediator;
    }
    public abstract void receive();
    public abstract void send(Mediator mediator);

}
